package com.atguigu.spzx.order.mapper;

import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.entity.order.OrderItem;

/**
 * @author Mahone
 */
public interface OrderInfoMapper {

    /**
     * 存储订单信息
     * @param orderInfo
     */
    void insertOrderInfo(OrderInfo orderInfo);

    /**
     * 获取订单信息
     * @param orderId
     * @return
     */
    OrderInfo selectOrderInfoById(Long orderId);

    /**
     * 根据订单号获取订单信息
     * @param orderNo
     * @return
     */
    OrderInfo selectOrderInfoByOrderNo(Long orderNo);
}
